import echarts from "echarts";

export default {
    data() {
        return {
            
        }
    },
    methods: {
        pieChart(){
            option = {
                title: [{
                    text: '总销售',
                    top: '40%',
                    textAlign: "center",
                    left: "50%",
                    textStyle: {
                        color: '#e44a2f',
                        fontSize: 18,
                    }
                }, {
                    text: '543212',
                    top: '46%',
                    textAlign: "center",
                    left: "50%",
                    textStyle: {
                        fontWeight: '400',
                        color: '#666',
                        fontSize: 22,
                    }
                }, {
                    text: '35%',
                    top: '52%',
                    textAlign: "center",
                    left: "50%",
                    textStyle: {
                        color: '#ddd',
                        fontSize: 18,
                    }
                }],
                color: ['#e9edfc'], 
              
                series: [{
                    name: 'Line 1',
                    type: 'pie',
                    clockWise: true,
                    radius: ['40%', '45%'],
                    itemStyle: {
                        normal: {
                            label: {
                                show: false
                            },
                            labelLine: {
                                show: false
                            }
                        }
                    },
                    hoverAnimation: false, 
                    data: [{
                        value: 40,
                        name: '01',
                        itemStyle: {
                            normal: {
                                color:'#f7c32b',
                                label: {
                                    show: false
                                },
                                labelLine: {
                                    show: false
                                }
                            } 
                        }
                    }, {
                        name: '02',
                        value: 60
                    }]
                }]
            }
        }
    },
}